public class Main{
    public static void main(String[] args) {
        FileReader fileReader = new FileReader();
        CipherMachine cipherMachine = new CipherMachine();
        FileWriter fileWriter = new FileWriter();
        EncryptFacade encryptFacade = new EncryptFacade(fileReader, cipherMachine, fileWriter);

        try {
            encryptFacade.encryptAndWriteFile("D:\\JAVA code\\facade-for-file-encryption-module\\FacadeForFileEncryptionModule\\src\\input", "encrypted_output.txt", 256);
            System.out.println("文件加密并保存成功！");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}